home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Libraries / DCLAP 6d / dclap6d / network / apple.old / GetMyIPAddr.h < prev    next >
Text File  |  1996-07-05  |  617b  |  28 lines

  1. /* 
  2.     GetMyIPAddr.h    
  3.     C definitions of parameter block entries needed for IP calls
  4.  
  5.     Copyright Apple Computer, Inc. 1989 
  6.     All rights reserved
  7.     
  8. */
  9.  
  10. #define ipctlGetAddr        15            /* csCode to get our IP address */
  11.  
  12. #define ParamBlockHeader     \
  13.     struct QElem *qLink;     \
  14.     short qType;             \
  15.     short ioTrap;             \
  16.     Ptr ioCmdAddr;             \
  17.     ProcPtr ioCompletion;     \
  18.     OSErr ioResult;         \
  19.     StringPtr ioNamePtr;     \
  20.     short ioVRefNum;        \
  21.     short ioCRefNum;        \
  22.     short csCode
  23.  
  24. struct IPParamBlock {
  25.     ParamBlockHeader;            /* standard I/O header */
  26.     ip_addr    ourAddress;            /* our IP address */
  27.     long    ourNetMask;            /* our IP net mask */
  28.     };